<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<%@page import="java.util.Date"%>
<%Date date=new Date();%>
<html>
<head>
	<title><%--provinceVaccineList.jsp--%>省级补助记录</title>
	<link href="${ctxCss}/common/listPage.css" type="text/css" rel="stylesheet" />
	<link href="${ctxCss}/common/layerBtn.css" type="text/css" rel="stylesheet"/>
	<script type="text/javascript" src="${ctxScript}/js/vaccine.js?<%=date.getTime()%>"></script>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		var path = '${ctx}'
		$(document).ready(function() {
			
		});
		function page(n,s){
			$("#pageNo").val(n);
			$("#pageSize").val(s);
			$("#searchForm").submit();
        	return false;
        }
	</script>
	<style>
		td{
			white-space: nowrap;
			overflow: hidden;
			text-overflow: ellipsis;
		}
	</style>
</head>
<body>
	<ul class="nav nav-tabs">
		<li class="active"><a href="${ctx}/bus/vaccine/provinceVaccineList?areaCode=${vaccine.areaCode}">补助记录</a></li>
	</ul>
	<form:form id="searchForm" modelAttribute="vaccine" action="${ctx}/bus/vaccine/provinceVaccineList" method="post" class="breadcrumb form-search">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<input id="areaCode" name="areaCode" type="hidden" value="${vaccine.areaCode}"/>
		<ul class="ul-form">
			<li>
				<label>养殖场名称：</label>
				<form:input path="entHistory.entName" htmlEscape="false" maxlength="15" class="input-medium"/>
			</li>
			<li>
				<label>审核时间：</label>
				<input name="audit.auditDate" type="text" readonly="readonly" maxlength="20" class="input-medium Wdate"
					   value="<fmt:formatDate value="${vaccine.audit.auditDate}" pattern="yyyy-MM-dd"/>"
					   onclick="WdatePicker({dateFmt:'yyyy-MM-dd'});"/>
			</li>
			<li class="btns"><input id="btnSubmit" class="btn btn-primary" type="submit" value="查询"/></li>
			<li class="clearfix"></li>
		</ul>
	</form:form>
	<sys:message content="${message}"/>
	<table id="contentTable" class="table table-striped table-bordered table-condensed" style="width: 100%;table-layout: fixed;">
		<thead>
			<tr>
				<th style="width:2%;height: 28px">序号</th>
				<th style="width:6%;height: 28px">审核通过时间</th>
				<th style="width:8%;height: 28px ">养殖场名称</th>
				<th style="width:6%;height: 28px ">养殖种类</th>
				<th style="width:8%;height: 28px ">存栏量(头/只)</th>
				<th style="width:20%;height: 28px">疫苗名称</th>
				<th style="width:12%;height: 28px">疫苗生产企业</th>
				<th style="width:20%;height: 28px">疫苗采购量</th>
				<th style="width:6%;height: 28px">补助总额（元）</th>
				<th style="width:4%;height: 28px">发票</th>
				<shiro:hasPermission name="bus:vaccine:edit"><th>操作</th></shiro:hasPermission>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="vaccine" varStatus="a">
			<tr>
				<td>
					${a.index + 1+(page.pageNo-1)*page.pageSize}
				</td>
				<td>
					<fmt:formatDate value="${vaccine.audit.auditDate}" pattern="yyyy-MM-dd"/>
				</td>
				<td>
					${vaccine.entHistory.entName}
				</td>
				<td>
					${vaccine.entHistory.farmType}
				</td>
				<td title="${vaccine.entHistory.initialDeposit}">
					${vaccine.entHistory.initialDeposit}
				</td>
				<td title="${vaccine.groupConcatVaccineName}">
					${vaccine.groupConcatVaccineName}
				</td>
				<td title="${vaccine.factory}">
					${vaccine.factory}
				</td>
				<td title="${vaccine.groupConcatVaccoineAmountMl}">
					${vaccine.groupConcatVaccoineAmountMl}
				</td>
				<td>
					${vaccine.subsidyCash}
				</td>
				<td>
					<a href="#" onclick="invoicePhotoView('${vaccine.id}','bus_vaccine','invoice')">查看</a>
				</td>
				<shiro:hasPermission name="bus:vaccine:edit"><td>
					<a href="#" onclick="provinceVaccineView('${vaccine.id}','${vaccine.audit.id}')">查看</a>
					<a href="#" onclick="provinceReject('${vaccine.id}','${vaccine.audit.id}')">一键驳回</a>
				</td></shiro:hasPermission>
			</tr>
		</c:forEach>
		</tbody>
	</table>
	<div class="pagination">${page}</div>
</body>
</html>